package com.hainabo.mgcmall.dao;

import com.hainabo.mgcmall.model.VehicleLicenceInfo;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

/**
 * Created by guoshihao on 2017/11/29.
 */
public interface VehicleLicenceRespository extends PagingAndSortingRepository<VehicleLicenceInfo, Long> {
    @Query(value = "UPDATE t_vehicle_licence_info set state = :state where id = :id", nativeQuery = true)
    public void updateState(@Param("state")String state, @Param("id")Long id);
}
